import request from '@/utils/request'

export function listequipmentInfo(query) {
  return request({
    url: '/danger/equipmentInfo/list',
    method: 'get',
    params: query
  })
}

export function createequipmentInfo(data) {
  return request({
    url: '/danger/equipmentInfo/create',
    method: 'post',
    data
  })
}

export function readequipmentInfo(data) {
  return request({
    url: '/danger/equipmentInfo/get/' + data.id,
    method: 'get'
  })
}

export function updateequipmentInfo(data) {
  return request({
    url: '/danger/equipmentInfo/update',
    method: 'post',
    data
  })
}

export function deleteequipmentInfo(data) {
  return request({
    url: '/danger/equipmentInfo/delete/' + data.feuipmentid,
    method: 'delete'
  })
}
